package com.yxw.live_vod_boot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * 店铺余额明细新增DTO类
 * @author xiexuxin
 * @date 2024-01-03
 */
@Data
@ApiModel(value = "BalanceDetailAddDTO", description = "店铺余额明细新增")
public class BalanceDetailAddDTO implements Serializable {

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("提现id")
    private Long withdrawDepositId;

    @Range(min = 0, max = 1, message = "类型只能是0或1")
    @ApiModelProperty(value = "类型 0支出 1收入")
    private Integer type;

    @Range(min = 0, max = 1, message = "明细只能是0或1")
    @ApiModelProperty(value = "明细 0订单完成, 1提现(暂定)")
    private Integer detail;

    @ApiModelProperty(value="备注")
    private String remark;
}
